﻿namespace DomainServices.Tools.Pdb.SymStore
{
    using System;
    using System.Runtime.InteropServices;
    using System.Runtime.InteropServices.ComTypes;

    [ComImport, InterfaceType(ComInterfaceType.InterfaceIsIUnknown), Guid("AA544d42-28CB-11d3-bd22-0000f80849bd"), ComVisible(false)]
    internal interface ISymUnmanagedBinder
    {
        [PreserveSig]
        int GetReaderForFile(IntPtr importer, [MarshalAs(UnmanagedType.LPWStr)] string filename, [MarshalAs(UnmanagedType.LPWStr)] string SearchPath, [MarshalAs(UnmanagedType.Interface)] out ISymUnmanagedReader retVal);
        [PreserveSig]
        int GetReaderFromStream(IntPtr importer, IStream stream, [MarshalAs(UnmanagedType.Interface)] out ISymUnmanagedReader retVal);
    }
}

